package gwtool.gui.components;

import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JProgressBar;

public class MyProgressbar extends JDialog {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private JProgressBar pbar;

	public MyProgressbar(JFrame c) {

		super(c);
		pbar = new JProgressBar();
		pbar.setMinimum(0);
		pbar.setMaximum(100);
		pbar.setIndeterminate(true);
		add(pbar);
	}

	public void updateProgressBar(int i) {

		pbar.setIndeterminate(false);
		pbar.setValue(i);
	}
}
